package com.atguigu.tingshu.album.client.impl;


import com.atguigu.tingshu.album.client.TrackInfoFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.album.TrackInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class TrackInfoDegradeFeignClient implements TrackInfoFeignClient {
    private static final Logger log = LoggerFactory.getLogger(TrackInfoDegradeFeignClient.class);

    @Override
    public Result<List<TrackInfo>> findPaidTrackInfoList(Long trackId, Integer trackCount) {
        log.info("批量获取下单付费声音列表降级熔断");
        return null;
    }

    @Override
    public Result<TrackInfo> getTrackInfo(Long id) {
        log.info("获取声音信息熔断降级");
        return null;
    }
}
